package com.nbsaas.boot.cms.rest.convert;

import com.nbsaas.boot.cms.data.entity.ArticleComment;
import com.nbsaas.boot.cms.api.domain.simple.ArticleCommentSimple;

import com.nbsaas.boot.rest.api.Converter;

/**
* 文章评论-列表对象转换器
*/

public class ArticleCommentSimpleConvert implements Converter<ArticleCommentSimple, ArticleComment> {




@Override
public ArticleCommentSimple convert(ArticleComment source) {
    ArticleCommentSimple result = new ArticleCommentSimple();

                result.setUserAvatar(source.getUserAvatar());
                result.setArticleId(source.getArticleId());
                result.setReplyUserNickname(source.getReplyUserNickname());
                result.setIpAddress(source.getIpAddress());
                result.setUserNickname(source.getUserNickname());
                result.setAuditRemark(source.getAuditRemark());
                result.setLikeCount(source.getLikeCount());
                result.setUserAgent(source.getUserAgent());
                result.setUserWebsite(source.getUserWebsite());
                result.setUserId(source.getUserId());
                result.setAddDate(source.getAddDate());
                result.setContent(source.getContent());
                result.setParentId(source.getParentId());
                result.setReplyUserId(source.getReplyUserId());
                result.setAuditorId(source.getAuditorId());
                result.setAuditTime(source.getAuditTime());
                result.setUserEmail(source.getUserEmail());
                result.setId(source.getId());
                result.setStatus(source.getStatus());
                result.setLastDate(source.getLastDate());


    return result;
}

}